package mock;

import interfaces.SensorDePiso;
import model.Ascensor;


public class SensorDePisoMock extends SensorDePiso{
	
	public SensorDePisoMock (Ascensor ascensor){
		this.ascensor=ascensor;
	}

	public void simularCambioDePisoHaciaArriba (){
		this.ascensor.setRecorrido(this.ascensor.getRecorrido()-1);
	}

	public void simularCambioDePisoHaciaAbajo (){
		this.ascensor.setRecorrido(this.ascensor.getRecorrido()+1);
	}

}